package id.co.gomobile.assessment

class Profile {
	
	// associations
	static belongsTo = User

	// properties
	String fullname
	Date birthdate
	String gender
	String address
	String phone
	String description
	
	// date properties
	Date dateCreated
	Date lastUpdated

    static constraints = {
		fullname(blank: false)
		birthdate(blank: false)
		gender(inList: ["Male", "Female"], blank: false)
		address(nullable: true)
		phone(blank: false)
		description(size: 0..2000, nullable: true)

		dateCreated()
		lastUpdated()
    }

}
